package week7;

public class BankAccount {
    private int accountNumber;
    private String password;
    private double balance;
    private static double interestRate = 1.85;
    private static double minBalance = 0.0;
    public BankAccount(int accountNumber, String password, double balance, double interestRate, double minBalance) {
        this.accountNumber = accountNumber;
        this.password = password;
        this.balance = balance;
        this.interestRate = interestRate;
        this.minBalance = minBalance;
    }
    public BankAccount() {
    }
    public int getAccountNumber() {
        return accountNumber;
    }
    public int generateAccountNumber() {
        int accountNumber = 1000000 +(int)(Math.random() * 1000000);
        return accountNumber;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
}


